using System.ComponentModel.DataAnnotations;
namespace webapi.Models{
    public class AddArticleRequests{
        /// <summary>
        /// 文章作者
        /// </summary>
        [Required(ErrorMessage = "文章作者id不能为空")]
        public int UserId { get; set; }
        /// <summary>
        /// 文章分类
        /// </summary>
        [Required(ErrorMessage = "文章分类不能为空")]
        public int CateId { get; set; }
        /// <summary>
        /// 文章标题
        /// </summary>
        [Required(ErrorMessage = "文章标题不能为空")]
        public string ArticleTitle { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>
        [Required(ErrorMessage = "文章内容不能为空")]
        public string ArticleBody { get; set; }
        // public int? LikeSum { get; set; }
    }
}
